add
Calls add with a 0 containerViewId.
Calls add with a null tag.
Add a fragment to the activity state. This fragment may optionally also have its view (if Fragment.onCreateView returns non-null) into a container view of the activity.
Return
Returns the same FragmentTransaction instance.
Parameters
Optional identifier of the container this fragment is to be placed in. If 0, it will not be placed in a container.
The fragment to be added, created via the FragmentManager's FragmentFactory.
Optional arguments to be set on the fragment.
Optional tag name for the fragment, to later retrieve the fragment with FragmentManager.findFragmentByTag(String).
Add a fragment to the activity state. This fragment may optionally also have its view (if Fragment.onCreateView returns non-null) into a container view of the activity.
Return
Returns the same FragmentTransaction instance.
Parameters
Optional identifier of the container this fragment is to be placed in. If 0, it will not be placed in a container.
The fragment to be added. This fragment must not already be added to the activity.
Optional tag name for the fragment, to later retrieve the fragment with FragmentManager.findFragmentByTag(String).
Add a fragment to the activity state. This fragment may optionally also have its view (if Fragment.onCreateView returns non-null) into a container view of the activity.
Return
Returns the same FragmentTransaction instance.
Parameters
The container this fragment is to be placed in. The id of the container should be non-zero and unique.
The fragment to be added. This fragment must not already be added to the activity.
Optional tag name for the fragment, to later retrieve the fragment with FragmentManager.findFragmentByTag(String).